home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MacApp / MacApp 3.0a2 / Libraries / MacApp.r < prev    next >
Encoding:
Text File  |  1991-05-01  |  4.9 KB  |  171 lines  |  [TEXT/MPS ]

  1. /*
  2.     MacApp.r
  3.     MacApp® Common Resources
  4.     Copyright © 1986-1990 Apple Computer, Inc.    All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES.R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20. /* NOTE:
  21.  
  22.     By Toolbox convention, the OK button is item 1 and the Cancel button
  23.         is item 2.
  24. */
  25.  
  26. #define        kBaseMacApp            129
  27. #define        kReservedForCommands 130    /* room to reserve for TCommand allocations that should never fail */
  28. #define        kScrollBarId        202
  29. #define      kInspectorWindowType        900
  30.  
  31. resource 'aedt' (kAEDispatchTable) {{            // Minimum for AppleEvent aware application
  32.     'aevt', 'oapp', cFinderNew;
  33.     'aevt', 'odoc', cFinderOpen;
  34.     'aevt', 'pdoc', cFinderPrint;
  35.     'aevt', 'quit', cFinderQuit;
  36.     }
  37. };
  38.  
  39. resource 'STR#' (kIDBuzzString,
  40. #if qNames
  41.     "IDBuzzString",
  42. #endif
  43.     purgeable) {
  44.      {    /* [1] */    "Save this document as:";    /* Std File prompt */
  45.         /* [2] */    "Save a copy in:";            /* Std File prompt */
  46.         /* [3] */    "Show Clipboard";            /* used as menu command */
  47.         /* [4] */    "Hide Clipboard";            /* used as menu command */
  48.         /* [5] */    "Undo <<<>>>";                /* used as menu command */
  49.         /* [6] */    "Redo <<<>>>";                /* used as menu command */
  50.             /* for Undo and Redo, the <<<>>> string will be replaced
  51.                 by the name of the command */                
  52.         /* [7] */    "Unable to display contents at the moment";
  53.                                 /* used when Clipboard cannot be displayed */
  54.         /* [8] */    "Untitled-<<<>>>";            /* name of an untitled document */
  55.             /* the <<<>>> string will be replaced by a sequence number */
  56.         /* [9] */    "closing";            /* see Alert 110: "Save changes before ___" */
  57.         /* [10] */    "quitting";         /* see Alert 110: "Save changes before ___" */
  58.         /* [11] */    "Can’t Undo";                    /* used as menu command */
  59.         /* [12] */    "save";             /* see Alert 113: "Do you want to ___ anyway?" */
  60.         /* [13] */    "revert";            /* see Alert 113: "Do you want to ___ anyway?" */
  61.         /* [14] */    "Hide Borders";                /* used as a menu item */
  62.         /* [15] */    "Show Borders";                /* used as a menu item */
  63.         /* [16] */    "Subscriber Options…";        /* used as a menu item */
  64.         /* [17] */    "Publisher Options…";        /* used as a menu item */
  65.     }
  66. };
  67.  
  68.  
  69. #if qInspector && !qDebug
  70. resource 'CMNU' (mDebug,
  71. #if qNames
  72.     "Inspector",
  73. #endif
  74.     nonpurgeable) {
  75.     mDebug,
  76.     textMenuProc,
  77.     0x7FFFFFBF,
  78.     enabled,
  79.     "Inspector",
  80.     {
  81.     "New Inspector Window",                 noIcon, noKey,    noMark, plain,    cNewInspectorWindow
  82.     }
  83. };
  84. #endif
  85.  
  86.  
  87. /* ===========================     Inspector Window    ============================= */
  88.  
  89. #if qTemplateViews && qInspector
  90. /* For building the view templates */
  91. resource 'view' (kInspectorWindowType,
  92. #if qNames
  93.     "InspectorWindowType",
  94. #endif
  95.     purgeable) {
  96.     {
  97.     root, 'WIND', { 0, 0 }, { 252, 215 }, sizeVariable, sizeVariable, shown, enabled,
  98.     Window        { "TInspectWindow", zoomDocProc, goAwayBox, resizable,
  99.                 modeless, ignoreFirstClick,freeOnClosing, disposeOnFree, closesDocument,
  100.                 openWithDocument, dontAdaptToScreen, dontstagger, forceOnScreen,
  101.                 dontCenter, 'IVW3', "Inspector <<<>>>" };
  102.  
  103.                 'WIND', 'SCL1', { 0, 0 }, { 12 * 7, 95 },
  104.                 sizeFixed, sizeFixed, shown, enabled,
  105.         Scroller    { "", vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  106.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  107.  
  108.                 'SCL1', 'IVW1', { 0, 0 }, { 0, 95 }, sizeVariable, sizeSuperView,
  109.                 shown, enabled,
  110.         View    { "TClassListView" };
  111.  
  112.                 'WIND', 'SCL2', { 0, 111 }, { 12 * 7, 200-111 },
  113.                 sizeFixed, sizeRelSuperView, shown, enabled,
  114.         Scroller    { "", vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  115.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  116.  
  117.                 'SCL2', 'IVW2', { 0, 0 }, { 0, 200 - 111 }, sizeVariable,
  118.                 sizeRelSuperView, shown, enabled,
  119.         View    { "TObjListView"  };
  120.  
  121.                 'WIND', 'SCL3', { 12 * 7 + 1, 0 }, { (252-(12*7)), 200 },
  122.                 sizeRelSuperView, sizeRelSuperView, shown, enabled,
  123.         Scroller    { "", vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  124.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  125.  
  126.                 'SCL3', 'IVW3', { 0, 0 }, { 0, 600 }, sizeVariable,
  127.                  sizeVariable, shown, enabled,
  128.         View    { "TObjectView" }
  129.  
  130.     }
  131. };
  132. #endif
  133.  
  134. #if !qTemplateViews && qInspector
  135. /* This guy is used when the template stuff isn't */
  136.  
  137. resource 'WIND' (kInspectorWindowType,
  138. #if qNames
  139.     "InspectorWindowType",
  140. #endif
  141.     purgeable) {
  142.     {0, 0, 250, 215},
  143.     zoomDocProc,
  144.     invisible,
  145.     goAway,
  146.     0x0,
  147.     "Inspector <<<>>>",
  148.     noAutoCenter
  149. };
  150. #endif
  151.  
  152. #if qTemplateViews
  153. resource 'view' (kScrollBarId,
  154. #if qNames
  155.     "kScrollBarId",
  156. #endif
  157.     purgeable)  { {
  158.     root, noID, { 0, 0 }, { 0, 0 }, sizeVariable, sizeVariable, shown, enabled,
  159.     ScrollBar {
  160.         "",
  161.             adnLineLeft, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  162.             noInset, systemFont, 0, 0, 0 };
  163. } };
  164. #endif
  165.  
  166. #include "ErrorMgr.r"            // ??? should this be a separate compile?
  167. #include "BusyCursor.r"            // ??? should this be a separate compile? Especially so
  168. // it can be optional?
  169. #include "Memory.r"                // ??? should this be a separate compile?
  170. #include "DeskScrapView.r"                // ??? should this be a separate compile?
  171.